package com.hbnu.pojo;


public class User {
    // Hibernate要求实体类必需要有一个唯一属性
    private int uid;
    private String username;
    private String password;
    private String address;
    private Double salary;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }
    @Override
    public String toString(){
        return "User{"+
                "uid="+uid+
                ",username='"+username+'\''+
                ",password='"+password+'\''+
                ",address='"+address+'\''+
                ",salary='"+salary+
                '}';
    }

}



















